import { PluginStats, PluginCategoryData } from '@/api/pluginData'

// 数据概览数据
export const mockOverviewData = {
  totalUsers: {
    count: '24,156',
    growth: '+15%',
    icon: 'fas fa-users'
  },
  totalProjects: {
    count: '4,872',
    growth: '+12%',
    icon: 'fas fa-project-diagram'
  },
  totalPlugins: {
    count: '342',
    growth: '+8%',
    icon: 'fas fa-puzzle-piece'
  },
  totalDownloads: {
    count: '87,429',
    growth: '+23%',
    icon: 'fas fa-download'
  }
}

// 用户活跃度数据
export const mockUserActivityData = {
  daily: {
    count: '2,458',
    growth: '12%',
    labels: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
    data: [30, 28, 32, 25, 27, 20, 22]
  },
  weekly: {
    count: '8,742',
    growth: '8%',
    labels: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
    data: [25, 28, 22, 25, 20, 18, 15]
  },
  monthly: {
    count: '24,156',
    growth: '15%',
    labels: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
    data: [30, 28, 25, 22, 20, 18, 15]
  }
}

// 工程数据
export const mockProjectData = {
  totalProjects: {
    count: '4,872',
    monthly: '+128',
    active: '3,245',
    avgModules: '12.5',
    growthRate: '+15.2%'
  },
  totalModules: {
    count: '58,464',
    monthly: '+1,536',
    basic: '12,345',
    functional: '35,678',
    reuseRate: '68.5%'
  },
  totalModels: {
    count: '23,456',
    monthly: '+624',
    data: '15,789',
    business: '7,667',
    usageRate: '82.3%'
  }
}

// 插件下载趋势数据
export const mockDownloadTrendData = {
  week: {
    labels: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
    downloads: [120, 150, 180, 200, 160, 140, 130],
    growth: [5, 8, 12, 15, 10, 7, 6],
    dateRange: '本周数据'
  },
  month: {
    labels: ['1日', '5日', '10日', '15日', '20日', '25日', '30日'],
    downloads: [150, 180, 220, 250, 280, 300, 320],
    growth: [8, 12, 15, 18, 20, 22, 25],
    dateRange: '本月数据'
  },
  all: {
    labels: ['1月', '2月', '3月', '4月', '5月', '6月', '7月'],
    downloads: [200, 250, 300, 350, 400, 450, 500],
    growth: [10, 15, 20, 25, 30, 35, 40],
    dateRange: '最近30天数据'
  }
}

// 热门插件数据
export const mockPopularPlugins = [
  {
    rank: 1,
    name: '数据可视化工具',
    version: 'v2.3.4',
    developer: '张三',
    downloads: '12,458',
    growth: '23%',
    icon: 'fas fa-cube'
  },
  {
    rank: 2,
    name: '代码生成器',
    version: 'v1.8.2',
    developer: '李四',
    downloads: '9,874',
    growth: '18%',
    icon: 'fas fa-code'
  },
  {
    rank: 3,
    name: 'AI助手',
    version: 'v3.1.0',
    developer: '王五',
    downloads: '7,652',
    growth: '15%',
    icon: 'fas fa-robot'
  },
  {
    rank: 4,
    name: 'UI主题定制',
    version: 'v2.0.1',
    developer: '赵六',
    downloads: '6,321',
    growth: '12%',
    icon: 'fas fa-palette'
  },
  {
    rank: 5,
    name: '数据库连接器',
    version: 'v1.5.3',
    developer: '孙七',
    downloads: '5,487',
    growth: '9%',
    icon: 'fas fa-database'
  }
]

// 插件类别分布数据
export const mockPluginCategories = [
  { name: '开发工具', count: 120, percent: 35, color: '#FFB74D' },
  { name: 'UI组件', count: 85, percent: 25, color: '#FF9800' },
  { name: '数据处理', count: 68, percent: 20, color: '#FFA726' },
  { name: '其他', count: 69, percent: 20, color: '#FFCC80' }
]

// 下载量统计
export const mockDownloadStats = {
  total: '87,429',
  month: '12,458',
  daily: '415',
  peak: '892',
  growth: {
    total: '23%',
    month: '18%',
    daily: '15%',
    peak: '32%'
  }
} 